import { Component, OnInit, ViewChild } from '@angular/core';
import { _HttpClient, ModalHelper } from '@delon/theme';
import { STColumn, STComponent } from '@delon/abc';
import { SFSchema } from '@delon/form';
import { NzMessageService, NzModalService } from 'ng-zorro-antd';
@Component({
  selector: 'system-serve',
  templateUrl: './serve.component.html'
})
export class SystemServeComponent {
  loading = false;
  company: any;
  searchSchema: SFSchema = {
    properties: {
      no: {
        type: 'string',
        title: '标题'
      }
    }
  };
  constructor(
    private http: _HttpClient,
    public msg: NzMessageService
  ) { }
  ngOnInit() {
    this.getData();
  }
  getData() {
    this.loading = true;
    this.http.get('api/company/list').subscribe((res: any) => {
      this.company = res;
    });
  }
}
